Replace 0 with NULL when assigning pointer fields/parameters.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 16 Nov 2005 10:27:19 +0000 (11:27 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 16 Nov 2005 10:27:19 +0000 (11:27 +0100)
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c
linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c

index 728c27511720efe7d2f965b994f638e7e3ae3139..0f516e5373b5501b0693aac55225a5a5abab5239 100644 (file)
@@ -752,7 +752,7 @@ void __init init_IRQ(void)
                irq_bindcount[dynirq_to_irq(i)] = 0;
 
                irq_desc[dynirq_to_irq(i)].status  = IRQ_DISABLED;
-               irq_desc[dynirq_to_irq(i)].action  = 0;
+               irq_desc[dynirq_to_irq(i)].action  = NULL;
                irq_desc[dynirq_to_irq(i)].depth   = 1;
                irq_desc[dynirq_to_irq(i)].handler = &dynirq_type;
        }
@@ -770,7 +770,7 @@ void __init init_IRQ(void)
 #endif
 
                irq_desc[pirq_to_irq(i)].status  = IRQ_DISABLED;
-               irq_desc[pirq_to_irq(i)].action  = 0;
+               irq_desc[pirq_to_irq(i)].action  = NULL;
                irq_desc[pirq_to_irq(i)].depth   = 1;
                irq_desc[pirq_to_irq(i)].handler = &pirq_type;
        }
index 1c6de43b4524a954d2521eae5898b5af40f1a2f6..ffb9cf20830de1f6532acb1b8b43ff6b52e09e77 100644 (file)
@@ -438,7 +438,7 @@ static struct attribute* xen_attrs[] = {
        &dev_attr_pcrs.attr,
        &dev_attr_caps.attr,
        &dev_attr_cancel.attr,
-       0,
+       NULL,
 };
 
 static struct attribute_group xen_attr_grp = { .attrs = xen_attrs };
index a179690a0b5b527666a892c14ddfe6d5230895bd..34f06a1d86494584d9e3b7fb703879f4ddc879b8 100644 (file)
@@ -543,7 +543,7 @@ static int __init blkif_init(void)
        spin_lock_init(&blkio_schedule_list_lock);
        INIT_LIST_HEAD(&blkio_schedule_list);
 
-       ret = kernel_thread(blkio_schedule, 0, CLONE_FS | CLONE_FILES);
+       ret = kernel_thread(blkio_schedule, NULL, CLONE_FS | CLONE_FILES);
        BUG_ON(ret < 0);
 
        blkif_xenbus_init();
index 230f379cddd6bbb6ac36e793a8b74b3e017374e0..5b20cb8f244d19dbdb7490df4f17ce427078d830 100644 (file)
@@ -884,7 +884,7 @@ void xenbus_probe(void *unused)
        register_xenbus_watch(&be_watch);
 
        /* Notify others that xenstore is up */
-       notifier_call_chain(&xenstore_chain, 0, 0);
+       notifier_call_chain(&xenstore_chain, 0, NULL);
 }